package com.kpijavatraining6.module2.sessionTools;

import com.kpijavatraining6.module2.mainMenu.GameLogic;

/**
 * Created with IntelliJ IDEA.
 * User: Vladislav
 * Date: 07.11.13
 * Time: 15:38
 * To change this template use File | Settings | File Templates.
 */
public class UserSession implements Session {
    private String userName;
    public UserSession(String name) {
        userName = name;
    }
    public void newUser() {
        System.out.println("you have no permission to create new user");
    }
    public void showStatistic() {
        UserStatistics userStatistics = new UserStatistics(userName);
        userStatistics.showStatistic();
    }
    public void exit() {
        System.out.println("bye!");
        System.exit(0);
    }
    public void startGame() {
        GameLogic gameLogic = new GameLogic(userName);
        gameLogic.runGameLogic();
    }
}
